package com.hhs.storage.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author hhs
 * @since 2022-12-17
 */
@Data
public class Driver implements Serializable {

    private static final long serialVersionUID = 1L;

      private String id;

      /**
     * 名称
     */
      private String name;

      /**
     * 身份证号
     */
      private String idCard;

      /**
     * 电话
     */
      private String phone;
        /**
         * 所属车队
         */
        @TableField(value = "car_fleet_id")
        private String carFleetId;
    @TableField(exist = false)
        private CarFleet carFleet;
      /**
     * 驾驶证
     */
//      private String driverLicenseUrl;

      /**
     * 健康证
     */
//      private String healthCertificateUrl;
      /**
     * 创建时间
     */
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
